package com.tuo51.core.domain.org;

import com.tuo51.foudation.model.Domain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Data
@EqualsAndHashCode(callSuper=true)
@Table(name = "rel_classes_children")
public class RelClassesChildren extends Domain {

    @Column
    private String childrenId;

    @Column
    private String classesId;

    public static RelClassesChildren of(String childrenId, String classesId){
        RelClassesChildren rel = new RelClassesChildren();
        rel.setChildrenId(childrenId);
        rel.setClassesId(classesId);
        return rel;
    }
}
